import { request } from '@ruifox-cms/utils'

// 分页获取模板
export function getTemplateList(params) {
    return request({
        url: '/station/api/contentTemplate/selectPage',
        method: 'get',
        params
    })
}
// 获取模板详情
export function getTemplateDetail(params) {
    return request({
        url: '/station/api/contentTemplate/selectById',
        method: 'get',
        params
    })
}
// 添加模板
export function insertTemplate(data) {
    return request({
        url: '/station/api/contentTemplate/insert',
        method: 'post',
        data
    })
}
// 修改模板
export function updateTemplate(data) {
    return request({
        url: '/station/api/contentTemplate/update',
        method: 'post',
        data
    })
}
// 删除模板
export function deleteTemplate(data) {
    return request({
        url: '/station/api/contentTemplate/delete',
        method: 'post',
        data
    })
}
// 批量删除模板
export function batchDeleteTemplate(data) {
    return request({
        url: '/station/api/contentTemplate/deleteList',
        method: 'post',
        data
    })
}
// 更新模板禁用状态
export function updateState(data) {
    return request({
        url: '/station/api/contentTemplate/updateState',
        method: 'post',
        data
    })
}